/**
 * 设备列表组件样式 - 紧凑小巧版本
 */

.deviceList {
    position: fixed;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    border-radius: 6px;
    padding: 8px;
    width: 100px;
    max-height: 50vh;
    overflow-y: auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    z-index: 1000;
    border: 1px solid #f0f0f0;

    // 滚动条样式
    &::-webkit-scrollbar {
        width: 4px;
    }

    &::-webkit-scrollbar-track {
        background: transparent;
    }

    &::-webkit-scrollbar-thumb {
        background: rgba(0, 0, 0, 0.15);
        border-radius: 2px;

        &:hover {
            background: rgba(0, 0, 0, 0.25);
        }
    }
}

.title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
    text-align: center;
    padding-bottom: 4px;
    border-bottom: 1px solid #f0f0f0;
}

.list {
    display: flex;
    flex-direction: column;
    gap: 0;
}


.deviceItem {
    padding: 6px 8px;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f5f5f5;
    display: flex;
    align-items: center;
    gap: 6px;

    &:last-child {
        border-bottom: none;
    }

    &:hover {
        background: rgba(24, 144, 255, 0.08);
        padding-left: 10px;
    }
}

.deviceId {
    font-size: 16px;
    color: #888;
    min-width: 35px;
}

.deviceName {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}